<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Cabinet CW01 demo</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
    <meta name="format-detection" content="telephone=no">
    <!--<script type="text/javascript" src="js/adaptive.js"></script>-->
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <link rel="stylesheet" href="../../element-ui/index.ml.css">
    <script type="text/javascript" src="../../js_code/jquery-3.6.1.min.js?v=2"></script>
    <script type="text/javascript" src="../../element-ui/vue.js"></script>
    <!-- import JavaScript -->
    <script type="text/javascript" src="../../element-ui/index.en.js"></script>

    <script src="../../js_code/underscore-min.js"></script>
    <script src="../../js_code/jquery-3.6.1.min.js"></script>
    <script src="../../js_code/iotauth.js"></script>
	<script src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"></script>
    <script src="../../js_code/xinxilan/v5_cw01_demo.js"></script>
    <script>
        function refresh2() {
            window.location.reload();
        }
    </script>
    <style>
        .box-card {
            display: inline-block;
        }
    </style>
</head>
<body class="big_show">

<!-- a6aa0b6b76  8a8b8b7339 -->
<div id="app" class="screen_app" style="margin-top: 20px;">
	<div style="display: block">
	    <input id="base_url" value="https://key01.bestwond.com" style="width: 200px;border-radius: 5px;">
	    <input id="device_number" value="5000000009" style="width: 200px;border-radius: 5px;" @blur="inputChange()">
	    <input id="app_secret" value="8a8b8b7339" style="width: 200px;border-radius: 5px;">
	    <!-- <button onclick="getDevice()">Get Device List</button> -->
	</div>
	<el-form :inline="true" :model="formInline" class="demo-form-inline">
	  <el-form-item>
	    <el-button type="primary" @click="addOrder">Sync order</el-button>
	  </el-form-item>
	  
	  <!-- <el-form-item>
	    <el-button type="primary" @click="getDevice">Device List</el-button>
	  </el-form-item> -->
	</el-form>
	<el-row>
	  <el-col :span="3" v-for="(item,index) in boxList">
		  <el-button style="margin-bottom: 10px;" @click="syncOrder(item)">
			  {{item.box_name}} 同步订单 {{item.key_car}}
		  </el-button>
	  </el-col>
	</el-row>
	  <el-dialog title="Sync Order" :visible.sync="dialogFormVisible" width="30%">
	    <el-form :model="dialogForm">
			<el-form-item label="BookingId" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.BookingId" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="device_number" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.device_number" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="BookingStatus" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.BookingStatus" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="KeySlotId" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.KeySlotId" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="OneTimeCode" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.OneTimeCode" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="Registration" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.Registration" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="DriverName" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.DriverName" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="OdometerRequired" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.OdometerRequired" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="Odometer" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.Odometer" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="KeyCollectionStartTime" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.KeyCollectionStartTime" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="KeyCollectionEndTime" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.KeyCollectionEndTime" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="BatteryPercentageRequired" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.BatteryPercentageRequired" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="BatteryPercentage" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.BatteryPercentage" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="RemainingRangRequired" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.RemainingRangRequired" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="RemainingRang" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.RemainingRang" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="ChargeStatusRequired" :label-width="formLabelWidth">
			  <el-input v-model.number="dialogForm.ChargeStatusRequired" autocomplete="off"></el-input>
			</el-form-item>
			<el-form-item label="ChargeStatus" :label-width="formLabelWidth">
			  <el-input v-model="dialogForm.ChargeStatus" autocomplete="off"></el-input>
			</el-form-item>
	    </el-form>
	    <div slot="footer" class="dialog-footer">
	      <el-button @click="dialogFormVisible = false">Cancel</el-button>
	      <el-button type="primary" @click="yesBtn">Confirm</el-button>
	    </div>
	  </el-dialog>
</div>
</div>
</body>


<script>
    bw = new Vue({
        el: '#app',
        data: {
            tableData: [],
			formInline:{
				page_num:1,
				page_size:10
			},
			boxList:[
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34576, 
				"market_id": 442, 
				"box_name": "01", 
				"box_type": null, 
				"lock_address": "0101", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:09", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "YS-8076", 
				"key_rfid_no": "5aa5ea62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34577, 
				"market_id": 442, 
				"box_name": "02", 
				"box_type": null, 
				"lock_address": "0102", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:10", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "KG18-81", 
				"key_rfid_no": "2a95f062", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34578, 
				"market_id": 442, 
				"box_name": "03", 
				"box_type": null, 
				"lock_address": "0103", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:12", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "SZW-121", 
				"key_rfid_no": "8af81463", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34579, 
				"market_id": 442, 
				"box_name": "04", 
				"box_type": null, 
				"lock_address": "0104", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:13", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "F5-238", 
				"key_rfid_no": "9a30fc62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34580, 
				"market_id": 442, 
				"box_name": "05", 
				"box_type": null, 
				"lock_address": "0105", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:21", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "DT81-83", 
				"key_rfid_no": "aae3ee62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34581, 
				"market_id": 442, 
				"box_name": "06", 
				"box_type": null, 
				"lock_address": "0106", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:23", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "AD-3782", 
				"key_rfid_no": "0ac10363", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34582, 
				"market_id": 442, 
				"box_name": "07", 
				"box_type": null, 
				"lock_address": "0107", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:26", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "XIZ-802", 
				"key_rfid_no": "1ad40463", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34583, 
				"market_id": 442, 
				"box_name": "08", 
				"box_type": null, 
				"lock_address": "0108", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:27", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "LK-3663", 
				"key_rfid_no": "4a96f062", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34584, 
				"market_id": 442, 
				"box_name": "09", 
				"box_type": null, 
				"lock_address": "0109", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:29", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "859-LDW", 
				"key_rfid_no": "0ae6f862", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34585, 
				"market_id": 442, 
				"box_name": "10", 
				"box_type": null, 
				"lock_address": "010a", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:30", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "ZQX-148", 
				"key_rfid_no": "5a850e63", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34586, 
				"market_id": 442, 
				"box_name": "11", 
				"box_type": null, 
				"lock_address": "010b", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:31", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "YDD-076", 
				"key_rfid_no": "5a271663", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34587, 
				"market_id": 442, 
				"box_name": "12", 
				"box_type": null, 
				"lock_address": "010c", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:33", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "V3-962", 
				"key_rfid_no": "1af60563", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34588, 
				"market_id": 442, 
				"box_name": "13", 
				"box_type": null, 
				"lock_address": "010d", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:34", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "QG-5733", 
				"key_rfid_no": "2af01163", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34589, 
				"market_id": 442, 
				"box_name": "14", 
				"box_type": null, 
				"lock_address": "010e", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:36", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "ERV-959", 
				"key_rfid_no": "8a140863", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34590, 
				"market_id": 442, 
				"box_name": "15", 
				"box_type": null, 
				"lock_address": "010f", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:43", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "HSE-995", 
				"key_rfid_no": "2a850c63", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34591, 
				"market_id": 442, 
				"box_name": "16", 
				"box_type": null, 
				"lock_address": "0110", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:45", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "BT-6086", 
				"key_rfid_no": "ca3ef262", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34592, 
				"market_id": 442, 
				"box_name": "17", 
				"box_type": null, 
				"lock_address": "0111", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:46", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "ZZ08-31", 
				"key_rfid_no": "2a06fb62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:28", 
				"id": 34593, 
				"market_id": 442, 
				"box_name": "18", 
				"box_type": null, 
				"lock_address": "0112", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:48", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "SN-6448", 
				"key_rfid_no": "8ac90563", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34594, 
				"market_id": 442, 
				"box_name": "19", 
				"box_type": null, 
				"lock_address": "0113", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:49", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "DO-2705", 
				"key_rfid_no": "dad1e562", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34595, 
				"market_id": 442, 
				"box_name": "20", 
				"box_type": null, 
				"lock_address": "0114", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:51", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "JSJ-862", 
				"key_rfid_no": "0afae862", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34596, 
				"market_id": 442, 
				"box_name": "21", 
				"box_type": null, 
				"lock_address": "0115", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:52", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "T6-638", 
				"key_rfid_no": "2a640d63", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34597, 
				"market_id": 442, 
				"box_name": "22", 
				"box_type": null, 
				"lock_address": "0116", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:54", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "IGL-500", 
				"key_rfid_no": "8ad10563", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34598, 
				"market_id": 442, 
				"box_name": "23", 
				"box_type": null, 
				"lock_address": "0117", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:55", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "LIC-012", 
				"key_rfid_no": "0acb1263", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34599, 
				"market_id": 442, 
				"box_name": "24", 
				"box_type": null, 
				"lock_address": "0118", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:57", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "NB-3554", 
				"key_rfid_no": "5af30663", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34600, 
				"market_id": 442, 
				"box_name": "25", 
				"box_type": null, 
				"lock_address": "0119", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:17:58", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "Y5-298", 
				"key_rfid_no": "cad9e562", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34601, 
				"market_id": 442, 
				"box_name": "26", 
				"box_type": null, 
				"lock_address": "011a", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:00", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "OZM-538", 
				"key_rfid_no": "3a66f062", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34602, 
				"market_id": 442, 
				"box_name": "27", 
				"box_type": null, 
				"lock_address": "011b", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:01", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "J0-870", 
				"key_rfid_no": "5a6d0063", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34603, 
				"market_id": 442, 
				"box_name": "28", 
				"box_type": null, 
				"lock_address": "011c", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:02", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "615-FRB", 
				"key_rfid_no": "9a590c63", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34604, 
				"market_id": 442, 
				"box_name": "29", 
				"box_type": null, 
				"lock_address": "011d", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:04", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "OY-6797", 
				"key_rfid_no": "ba112b63", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34605, 
				"market_id": 442, 
				"box_name": "30", 
				"box_type": null, 
				"lock_address": "011e", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:05", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "GH-0436", 
				"key_rfid_no": "8a732363", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34606, 
				"market_id": 442, 
				"box_name": "31", 
				"box_type": null, 
				"lock_address": "011f", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:07", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "ABS-133", 
				"key_rfid_no": "6a18e862", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34607, 
				"market_id": 442, 
				"box_name": "32", 
				"box_type": null, 
				"lock_address": "0120", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:08", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "852-MOT", 
				"key_rfid_no": "ca6fff62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34608, 
				"market_id": 442, 
				"box_name": "33", 
				"box_type": null, 
				"lock_address": "0121", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:10", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "T5-453", 
				"key_rfid_no": "5a1c2563", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34609, 
				"market_id": 442, 
				"box_name": "34", 
				"box_type": null, 
				"lock_address": "0122", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:11", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "VRX-549", 
				"key_rfid_no": "da2cea62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34610, 
				"market_id": 442, 
				"box_name": "35", 
				"box_type": null, 
				"lock_address": "0123", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:13", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "519-NUB", 
				"key_rfid_no": "9aa00363", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34611, 
				"market_id": 442, 
				"box_name": "36", 
				"box_type": null, 
				"lock_address": "0124", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:14", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "OM-8004", 
				"key_rfid_no": "ca38fc62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34612, 
				"market_id": 442, 
				"box_name": "37", 
				"box_type": null, 
				"lock_address": "0125", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:16", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "GOP-172", 
				"key_rfid_no": "6aaded62", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34613, 
				"market_id": 442, 
				"box_name": "38", 
				"box_type": null, 
				"lock_address": "0126", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:17", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "OU-0117", 
				"key_rfid_no": "9a030763", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34614, 
				"market_id": 442, 
				"box_name": "39", 
				"box_type": null, 
				"lock_address": "0127", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:19", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "D4-660", 
				"key_rfid_no": "8a1af662", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }, 
			  {
				"ctime": "2025-04-22 15:08:29", 
				"id": 34615, 
				"market_id": 442, 
				"box_name": "40", 
				"box_type": null, 
				"lock_address": "0128", 
				"remark": "Bind Key", 
				"rental_items_id": null, 
				"enable_status": 1, 
				"device_number": "5000000009", 
				"uptime": "2025-04-23 17:18:20", 
				"box_size": null, 
				"pick_code": null, 
				"status": 2, 
				"order_no": null, 
				"count": null, 
				"key_car": "PI03-49", 
				"key_rfid_no": "0a3a0763", 
				"box_status": 2, 
				"user_id_list": [], 
				"device_name": "test03", 
				"box_open_status": 1, 
				"box_red_light_status": 3, 
				"box_green_light_status": 3
			  }
			],
			total:0,
			deviceList:[],
			dialogFormVisible:false,
			formLabelWidth:"120px",
			dialogDeviceVisible:false,
			dialogBoxVisible:false,
			dialogForm:{
				BookingId:'',
				device_number:'5000000009',
				BookingStatus:'booked',
				KeySlotId:'',
				OneTimeCode:'145632',
				Registration:'6965-AAA',
				DriverName:'NCY',
				OdometerRequired:1,
				Odometer:'1234589',
				KeyCollectionStartTime:'1744789505',
				KeyCollectionEndTime:'1745375899',
				BatteryPercentageRequired:1,
				BatteryPercentage:'89',
				RemainingRangeRequired:1,
				RemainingRange:'250',
				ChargeStatusRequired:1,
				ChargeStatus:1
			},
			title:'Sync Order',
			options: [{
			  value: 'CONFIRMED',
			  label: 'CONFIRMED'
			}, {
			  value: 'CHECK_OUT',
			  label: 'CHECK_OUT'
			}, {
			  value: 'ONGOING',
			  label: 'ONGOING'
			}, {
			  value: 'CHECK_IN',
			  label: 'CHECK_IN'
			}, {
			  value: 'IN_PROGRESS',
			  label: 'IN_PROGRESS'
			}],
        },
        created: function () {
			// this.getOrder()
        },
        methods: {
			inputChange(){
				if($('#device_number').val() == '5000000008'){
					this.boxList = [
						  {
							"ctime": "2025-04-21 11:17:17", 
							"market_id": 442, 
							"id": 34570, 
							"box_name": "01", 
							"box_type": null, 
							"lock_address": "0101", 
							"remark": "绑定钥匙", 
							"rental_items_id": null, 
							"enable_status": 1, 
							"device_number": "5000000008", 
							"uptime": "2025-04-21 11:36:50", 
							"box_size": null, 
							"pick_code": null, 
							"status": 2, 
							"order_no": null, 
							"count": null, 
							"key_car": "S2-686", 
							"key_rfid_no": "0a24e662", 
							"box_status": 2, 
							"user_id_list": [], 
							"device_name": "NCY测试设备", 
							"box_open_status": 1, 
							"box_red_light_status": 1, 
							"box_green_light_status": 2
						  }, 
						  {
							"ctime": "2025-04-21 11:17:17", 
							"market_id": 442, 
							"id": 34571, 
							"box_name": "02", 
							"box_type": null, 
							"lock_address": "0102", 
							"remark": "绑定钥匙", 
							"rental_items_id": null, 
							"enable_status": 1, 
							"device_number": "5000000008", 
							"uptime": "2025-04-21 11:46:52", 
							"box_size": null, 
							"pick_code": null, 
							"status": 2, 
							"order_no": null, 
							"count": null, 
							"key_car": "752-FSP", 
							"key_rfid_no": "1a311663", 
							"box_status": 2, 
							"user_id_list": [], 
							"device_name": "NCY测试设备", 
							"box_open_status": 1, 
							"box_red_light_status": 1, 
							"box_green_light_status": 2
						  }, 
						  {
							"ctime": "2025-04-21 11:17:17", 
							"market_id": 442, 
							"id": 34572, 
							"box_name": "03", 
							"box_type": null, 
							"lock_address": "0103", 
							"remark": "绑定钥匙", 
							"rental_items_id": null, 
							"enable_status": 1, 
							"device_number": "5000000008", 
							"uptime": "2025-04-21 11:50:22", 
							"box_size": null, 
							"pick_code": null, 
							"status": 2, 
							"order_no": null, 
							"count": null, 
							"key_car": "EO65-16", 
							"key_rfid_no": "5a051663", 
							"box_status": 2, 
							"user_id_list": [], 
							"device_name": "NCY测试设备", 
							"box_open_status": 1, 
							"box_red_light_status": 1, 
							"box_green_light_status": 2
						  }, 
						  {
							"ctime": "2025-04-21 11:17:18", 
							"market_id": 442, 
							"id": 34573, 
							"box_name": "04", 
							"box_type": null, 
							"lock_address": "0104", 
							"remark": "绑定钥匙", 
							"rental_items_id": null, 
							"enable_status": 1, 
							"device_number": "5000000008", 
							"uptime": "2025-04-21 11:29:26", 
							"box_size": null, 
							"pick_code": null, 
							"status": 2, 
							"order_no": null, 
							"count": null, 
							"key_car": "OML-330", 
							"key_rfid_no": "3a8d0e63", 
							"box_status": 2, 
							"user_id_list": [], 
							"device_name": "NCY测试设备", 
							"box_open_status": 1, 
							"box_red_light_status": 1, 
							"box_green_light_status": 2
						  }, 
						  {
							"ctime": "2025-04-21 11:17:18", 
							"market_id": 442, 
							"id": 34574, 
							"box_name": "05", 
							"box_type": null, 
							"lock_address": "0105", 
							"remark": "绑定钥匙", 
							"rental_items_id": null, 
							"enable_status": 1, 
							"device_number": "5000000008", 
							"uptime": "2025-04-21 11:29:28", 
							"box_size": null, 
							"pick_code": null, 
							"status": 2, 
							"order_no": null, 
							"count": null, 
							"key_car": "026-DKR", 
							"key_rfid_no": "ea7c0e63", 
							"box_status": 2, 
							"user_id_list": [], 
							"device_name": "NCY测试设备", 
							"box_open_status": 1, 
							"box_red_light_status": 1, 
							"box_green_light_status": 2
						  }, 
						  {
							"ctime": "2025-04-21 11:17:18", 
							"market_id": 442, 
							"id": 34575, 
							"box_name": "06", 
							"box_type": null, 
							"lock_address": "0106", 
							"remark": "绑定钥匙", 
							"rental_items_id": null, 
							"enable_status": 1, 
							"device_number": "5000000008", 
							"uptime": "2025-04-21 11:29:29", 
							"box_size": null, 
							"pick_code": null, 
							"status": 2, 
							"order_no": null, 
							"count": null, 
							"key_car": "RJ-5093", 
							"key_rfid_no": "7a760263", 
							"box_status": 2, 
							"user_id_list": [], 
							"device_name": "NCY测试设备", 
							"box_open_status": 1, 
							"box_red_light_status": 1, 
							"box_green_light_status": 2
						  }
						]
				}else{
					this.boxList = [
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34576, 
						"market_id": 442, 
						"box_name": "01", 
						"box_type": null, 
						"lock_address": "0101", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:09", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "YS-8076", 
						"key_rfid_no": "5aa5ea62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34577, 
						"market_id": 442, 
						"box_name": "02", 
						"box_type": null, 
						"lock_address": "0102", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:10", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "KG18-81", 
						"key_rfid_no": "2a95f062", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34578, 
						"market_id": 442, 
						"box_name": "03", 
						"box_type": null, 
						"lock_address": "0103", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:12", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "SZW-121", 
						"key_rfid_no": "8af81463", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34579, 
						"market_id": 442, 
						"box_name": "04", 
						"box_type": null, 
						"lock_address": "0104", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:13", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "F5-238", 
						"key_rfid_no": "9a30fc62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34580, 
						"market_id": 442, 
						"box_name": "05", 
						"box_type": null, 
						"lock_address": "0105", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:21", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "DT81-83", 
						"key_rfid_no": "aae3ee62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34581, 
						"market_id": 442, 
						"box_name": "06", 
						"box_type": null, 
						"lock_address": "0106", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:23", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "AD-3782", 
						"key_rfid_no": "0ac10363", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34582, 
						"market_id": 442, 
						"box_name": "07", 
						"box_type": null, 
						"lock_address": "0107", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:26", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "XIZ-802", 
						"key_rfid_no": "1ad40463", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34583, 
						"market_id": 442, 
						"box_name": "08", 
						"box_type": null, 
						"lock_address": "0108", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:27", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "LK-3663", 
						"key_rfid_no": "4a96f062", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34584, 
						"market_id": 442, 
						"box_name": "09", 
						"box_type": null, 
						"lock_address": "0109", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:29", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "859-LDW", 
						"key_rfid_no": "0ae6f862", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34585, 
						"market_id": 442, 
						"box_name": "10", 
						"box_type": null, 
						"lock_address": "010a", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:30", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "ZQX-148", 
						"key_rfid_no": "5a850e63", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34586, 
						"market_id": 442, 
						"box_name": "11", 
						"box_type": null, 
						"lock_address": "010b", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:31", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "YDD-076", 
						"key_rfid_no": "5a271663", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34587, 
						"market_id": 442, 
						"box_name": "12", 
						"box_type": null, 
						"lock_address": "010c", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:33", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "V3-962", 
						"key_rfid_no": "1af60563", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34588, 
						"market_id": 442, 
						"box_name": "13", 
						"box_type": null, 
						"lock_address": "010d", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:34", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "QG-5733", 
						"key_rfid_no": "2af01163", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34589, 
						"market_id": 442, 
						"box_name": "14", 
						"box_type": null, 
						"lock_address": "010e", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:36", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "ERV-959", 
						"key_rfid_no": "8a140863", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34590, 
						"market_id": 442, 
						"box_name": "15", 
						"box_type": null, 
						"lock_address": "010f", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:43", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "HSE-995", 
						"key_rfid_no": "2a850c63", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34591, 
						"market_id": 442, 
						"box_name": "16", 
						"box_type": null, 
						"lock_address": "0110", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:45", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "BT-6086", 
						"key_rfid_no": "ca3ef262", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34592, 
						"market_id": 442, 
						"box_name": "17", 
						"box_type": null, 
						"lock_address": "0111", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:46", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "ZZ08-31", 
						"key_rfid_no": "2a06fb62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:28", 
						"id": 34593, 
						"market_id": 442, 
						"box_name": "18", 
						"box_type": null, 
						"lock_address": "0112", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:48", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "SN-6448", 
						"key_rfid_no": "8ac90563", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34594, 
						"market_id": 442, 
						"box_name": "19", 
						"box_type": null, 
						"lock_address": "0113", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:49", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "DO-2705", 
						"key_rfid_no": "dad1e562", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34595, 
						"market_id": 442, 
						"box_name": "20", 
						"box_type": null, 
						"lock_address": "0114", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:51", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "JSJ-862", 
						"key_rfid_no": "0afae862", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34596, 
						"market_id": 442, 
						"box_name": "21", 
						"box_type": null, 
						"lock_address": "0115", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:52", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "T6-638", 
						"key_rfid_no": "2a640d63", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34597, 
						"market_id": 442, 
						"box_name": "22", 
						"box_type": null, 
						"lock_address": "0116", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:54", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "IGL-500", 
						"key_rfid_no": "8ad10563", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34598, 
						"market_id": 442, 
						"box_name": "23", 
						"box_type": null, 
						"lock_address": "0117", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:55", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "LIC-012", 
						"key_rfid_no": "0acb1263", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34599, 
						"market_id": 442, 
						"box_name": "24", 
						"box_type": null, 
						"lock_address": "0118", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:57", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "NB-3554", 
						"key_rfid_no": "5af30663", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34600, 
						"market_id": 442, 
						"box_name": "25", 
						"box_type": null, 
						"lock_address": "0119", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:17:58", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "Y5-298", 
						"key_rfid_no": "cad9e562", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34601, 
						"market_id": 442, 
						"box_name": "26", 
						"box_type": null, 
						"lock_address": "011a", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:00", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "OZM-538", 
						"key_rfid_no": "3a66f062", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34602, 
						"market_id": 442, 
						"box_name": "27", 
						"box_type": null, 
						"lock_address": "011b", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:01", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "J0-870", 
						"key_rfid_no": "5a6d0063", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34603, 
						"market_id": 442, 
						"box_name": "28", 
						"box_type": null, 
						"lock_address": "011c", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:02", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "615-FRB", 
						"key_rfid_no": "9a590c63", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34604, 
						"market_id": 442, 
						"box_name": "29", 
						"box_type": null, 
						"lock_address": "011d", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:04", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "OY-6797", 
						"key_rfid_no": "ba112b63", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34605, 
						"market_id": 442, 
						"box_name": "30", 
						"box_type": null, 
						"lock_address": "011e", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:05", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "GH-0436", 
						"key_rfid_no": "8a732363", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34606, 
						"market_id": 442, 
						"box_name": "31", 
						"box_type": null, 
						"lock_address": "011f", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:07", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "ABS-133", 
						"key_rfid_no": "6a18e862", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34607, 
						"market_id": 442, 
						"box_name": "32", 
						"box_type": null, 
						"lock_address": "0120", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:08", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "852-MOT", 
						"key_rfid_no": "ca6fff62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34608, 
						"market_id": 442, 
						"box_name": "33", 
						"box_type": null, 
						"lock_address": "0121", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:10", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "T5-453", 
						"key_rfid_no": "5a1c2563", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34609, 
						"market_id": 442, 
						"box_name": "34", 
						"box_type": null, 
						"lock_address": "0122", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:11", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "VRX-549", 
						"key_rfid_no": "da2cea62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34610, 
						"market_id": 442, 
						"box_name": "35", 
						"box_type": null, 
						"lock_address": "0123", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:13", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "519-NUB", 
						"key_rfid_no": "9aa00363", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34611, 
						"market_id": 442, 
						"box_name": "36", 
						"box_type": null, 
						"lock_address": "0124", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:14", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "OM-8004", 
						"key_rfid_no": "ca38fc62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34612, 
						"market_id": 442, 
						"box_name": "37", 
						"box_type": null, 
						"lock_address": "0125", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:16", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "GOP-172", 
						"key_rfid_no": "6aaded62", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34613, 
						"market_id": 442, 
						"box_name": "38", 
						"box_type": null, 
						"lock_address": "0126", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:17", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "OU-0117", 
						"key_rfid_no": "9a030763", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34614, 
						"market_id": 442, 
						"box_name": "39", 
						"box_type": null, 
						"lock_address": "0127", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:19", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "D4-660", 
						"key_rfid_no": "8a1af662", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }, 
					  {
						"ctime": "2025-04-22 15:08:29", 
						"id": 34615, 
						"market_id": 442, 
						"box_name": "40", 
						"box_type": null, 
						"lock_address": "0128", 
						"remark": "Bind Key", 
						"rental_items_id": null, 
						"enable_status": 1, 
						"device_number": "5000000009", 
						"uptime": "2025-04-23 17:18:20", 
						"box_size": null, 
						"pick_code": null, 
						"status": 2, 
						"order_no": null, 
						"count": null, 
						"key_car": "PI03-49", 
						"key_rfid_no": "0a3a0763", 
						"box_status": 2, 
						"user_id_list": [], 
						"device_name": "test03", 
						"box_open_status": 1, 
						"box_red_light_status": 3, 
						"box_green_light_status": 3
					  }
					]
				}
			},
			getDevice(){
				let data = kd.bw_api('/api/iot/device/list/',{})
				console.log(data)
				if(data.code == 0){
					this.dialogDeviceVisible = true
					this.deviceList= data.data
				}else{
					this.$message.error(data.msg)
				}
			},
			handleSizeChange(val){
				this.formInline.page_size = val
				this.getOrder()
			},
			handleCurrentChange(val){
				this.formInline.page_num = val
				this.getOrder()
			},
			addOrder(){
				this.title = 'Add'
				this.dialogFormVisible = true
			},
			getOrder(){
				let data = kd.bw_api('/api/iot/v5/get/orders/',this.formInline)
				console.log(data)
				if(data.code == 0){
					this.tableData = data.data.list
					this.total = data.data.page.total_count
				}else{
					this.$message.error(data.msg)
				}
			},
			yesBtn(){
				let dataFrom = {
					"device_number":this.dialogForm.device_number,
					"BookingId": this.dialogForm.BookingId,
				    "BookingStatus": this.dialogForm.BookingStatus,
				    "KeySlotId": this.dialogForm.KeySlotId,
				    "OneTimeCode": this.dialogForm.OneTimeCode,
				    "Registration": this.dialogForm.Registration,
				    "DriverName": this.dialogForm.DriverName,
				    "OdometerRequired": this.dialogForm.OdometerRequired,
				    "Odometer": this.dialogForm.Odometer,
				    "KeyCollectionStartTime": this.dialogForm.KeyCollectionStartTime,
				    "KeyCollectionEndTime": this.dialogForm.KeyCollectionEndTime,
				    "BatteryPercentageRequired": this.dialogForm.BatteryPercentageRequired,
				    "BatteryPercentage": this.dialogForm.BatteryPercentage,
				    "RemainingRangeRequired": this.dialogForm.RemainingRangeRequired,
				    "RemainingRange": this.dialogForm.RemainingRange,
				    "ChargeStatusRequired": this.dialogForm.ChargeStatusRequired,
					"ChargeStatus": this.dialogForm.ChargeStatus
				}
				let data = kd.bw_api('/api/screen/en/sync/order/',dataFrom)
				console.log(data)
				if(data.code == 0){
					this.$message.success('success')
					this.dialogForm = {}
					// this.getOrder()
					this.dialogFormVisible = false
				}else{
					this.$message.error(data.msg)
				}
				
			},
			editOrder(data){
				this.title = 'Edit'
				this.dialogFormVisible = true
				this.dialogForm = JSON.parse(JSON.stringify(data))
			},
			updateOrder(data){
				let dataFrom = {
					"device_number":data.device_number,
					"order_id": data.order_id,
					"status":"ONGOING"
				}
				let dataT = kd.bw_api('/api/iot/v5/update/order/',dataFrom)
				console.log(dataT)
				if(dataT.code == 0){
					this.getOrder()
					this.$message.success('success')
				}else{
					this.$message.error(dataT.msg)
				}
			},
			generateSecurePickupCode() {
			  // 使用 crypto API 获取更安全的随机数
			  const array = new Uint32Array(1);
			  window.crypto.getRandomValues(array);
			  return 100000 + (array[0] % 900000);
			},
			generateSecureOrderId() {
			    const array = new Uint32Array(3);
			    window.crypto.getRandomValues(array);
			    return array.join('').slice(0, 11);
			},
			generateNZName() {
			    // 常见新西兰英语名（男女通用）
			    const firstNames = [
			        "Liam", "Noah", "Oliver", "Jack", "Leo",
			        "Charlotte", "Amelia", "Mia", "Isla", "Ava",
			        "Ari", "Nikau", "Tane", "Manaia", "Koa"  // 毛利名
			    ];
			    
			    // 常见新西兰姓氏（英语+毛利）
			    const lastNames = [
			        "Smith", "Wilson", "Brown", "Taylor", "Clark",
			        "Kauri", "Tama", "Wiremu", "Hemi", "Ngata"
			    ];
			    
			    const firstName = firstNames[Math.floor(Math.random() * firstNames.length)];
			    const lastName = lastNames[Math.floor(Math.random() * lastNames.length)];
			    
			    return `${firstName}${lastName}`;
			},
			syncOrder(item){
				console.log(item);
				let dataFrom = {
					"device_number":this.dialogForm.device_number,
					"BookingId": this.generateSecureOrderId(),
				    "BookingStatus": this.dialogForm.BookingStatus,
				    "KeySlotId": item.id,
				    "OneTimeCode": Math.random().toString().slice(2, 8).padEnd(6, '0'),
				    "Registration": item.key_car,
				    "DriverName": this.generateNZName(),
				    "OdometerRequired": this.dialogForm.OdometerRequired,
				    "Odometer": this.dialogForm.Odometer,
				    "KeyCollectionStartTime": JSON.stringify(new Date().getTime()),
				    "KeyCollectionEndTime": JSON.stringify(Date.now() + 24 * 60 * 60 * 1000),
				    "BatteryPercentageRequired": this.dialogForm.BatteryPercentageRequired,
				    "BatteryPercentage": this.dialogForm.BatteryPercentage,
				    "RemainingRangeRequired": this.dialogForm.RemainingRangeRequired,
				    "RemainingRange": this.dialogForm.RemainingRange,
				    "ChargeStatusRequired": this.dialogForm.ChargeStatusRequired,
					"ChargeStatus": this.dialogForm.ChargeStatus
				}
				let data = kd.bw_api('/api/screen/en/sync/order/',dataFrom)
				console.log(data)
				if(data.code == 0){
					this.$message.success('success')
					this.dialogForm = {}
					// this.getOrder()
					this.dialogFormVisible = false
				}else{
					this.$message.error(data.msg)
				}
			},
			handleClick(deviceInfo){
				let data = kd.bw_api('/api/iot/device/box/list/',{device_number:deviceInfo})
				console.log(data)
				if(data.code == 0){
					this.dialogBoxVisible = true
					this.boxList= data.data
				}else{
					this.$message.error(data.msg)
				}
			}
        }
    });
</script>
</html>
